import matplotlib.pyplot as plt
import cv2
import numpy as np

from anchor import Anchor

anchor_generate=Anchor(scales=2**np.arange(6,9))

size=[1,1,62,41]
boxes=anchor_generate(size)[0]



img=cv2.imread("./imgs/1.jpg")
img=img[:,:,::-1]

plt.imshow(img)

ax=plt.gca()

for p in range(boxes.shape[0]):
    for i in range(boxes.shape[1]):
        ax.add_patch(plt.Rectangle((boxes[p][i][0],boxes[p][i][1]),boxes[p][i][2]-boxes[p][i][0],boxes[p][i][3]-boxes[p][i][1],color='blue',linewidth=1,fill=False))



plt.show()